package cn.wolfcode.crm.service;

import cn.wolfcode.crm.domain.Employee;
import cn.wolfcode.crm.query.CustomerQueryObject;
import cn.wolfcode.crm.query.QueryObject;
import com.github.pagehelper.PageInfo;
import org.apache.poi.ss.usermodel.Workbook;

import java.io.InputStream;
import java.util.List;

public interface IEmployeeService {
    void save(Employee employee, Long[] ids);

    void delete(Long id);

    void update(Employee employee, Long[] ids);

    Employee get(Long id);

    List<Employee> list();

    Employee login(String username, String password);

    PageInfo query(QueryObject qo);

    void batchDelete(Long[] ids);

    Employee queryByusername(String username);

    Workbook export();

    void imports(InputStream inputStream) throws Exception;

    List<Employee> listByRoleSn(String[] strings);

    List<Employee> listBySellerId(CustomerQueryObject qo);

}
